<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<html>
<head>
    <title>Title</title>
    <%@include file="/static/common/common.jsp"%>
    <script src="/static/js/chart/saleChart.js"></script>
</head>
<body>
<table id="saleChart_datagrid" >

</table>

<div id="saleChart_toolbar">
    <tr>
        <td>机构:</td>
        <td><input id="organization" class="easyui-combobox" name="organizationId" width="500"
                   data-options="valueField:'id',
                           textField:'name',
                           editable:false,
                           url:'/organization/selectAll.do',
                           required:true,
                           panelWidth:250,
                           width:250"/> </td>
    </tr>


    <tr>
        <td>险种:</td>
        <td><input id="product" class="easyui-combobox" name="productId" width="500"
                   data-options="valueField:'id',
                           textField:'productName',
                           editable:false,
                           url:'/product/selectAll.do',
                           required:true,
                           panelWidth:150,
                           width:200"/> </td>
    </tr>

    <tr>
        保单时间：<input id="beginDate" class="easyui-datebox" data-options="editable:false"> ~
        <input id="endDate" class="easyui-datebox" data-options="editable:false">
    </tr>

    <p>
        <tr>
            <td>分组:
                <select id="groupType" class="easyui-combobox"
                        data-options="panelHeight:'auto',width:118" name="groupType">
                    <option value="inputUser.username">销售人员</option>
                    <option value="org.name">保险机构</option>
                    <option value="p.productName">保险产品</option>
                    <option value="DATE_FORMAT(ins.beginDate,'%Y-%m')">保单日期(月)</option>
                    <option value="DATE_FORMAT(ins.beginDate,'%Y-%m-%d')">保单日期(日)</option>
                </select>
            </td>
            <td width="50px"></td>
            <td><a class="easyui-linkbutton chart" iconCls="iconfont icon-shuju2" plain="true"
                   data-cmd="saleByBar">柱状图</a>
            <td width="70px"></td>
            <td><a class="easyui-linkbutton chart" iconCls="iconfont icon-shuju1" plain="true"
                   data-cmd="saleByPie">饼状图</a>
            </td>
            <td width="60px"></td>
            <td><a class="easyui-linkbutton" iconCls="iconfont icon-sousuo" plain="true" data-cmd="query">搜索</a> </td>
            <td><a class="easyui-linkbutton" iconCls="iconfont icon-shuaxin" plain="true" data-cmd="reload">刷新</a></td>
        </tr>
    </p>
</div>

<div id="saleByBar_dialog">
    <%--iframe是把一个网页嵌套进去的标签--%>
    <iframe id="barTable" src="" frameborder="0" style="width: 100%;height: 100%;"></iframe>
</div>
<div id="saleByPie_dialog">
    <%--iframe是把一个网页嵌套进去的标签--%>
    <iframe id="pieTable" src="" frameborder="0" style="width: 100%;height: 100%;"></iframe>
</div>


</body>
</html>
